package com.cos.util;

import org.springframework.context.ApplicationContext;
/**
 * 项目名称：
 * @author:fh
 * 
*/
public class Const {
	public static final String SESSION_SECURITY_CODE = "sessionSecCode";
	public static final String SESSION_USER = "sessionUser";
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String SESSION_menuList = "menuList";			//当前菜单
	public static final String SESSION_allmenuList = "allmenuList";		//全部菜单
	public static final String SESSION_QX = "QX";
	public static final String SESSION_userpds = "userpds";			
	public static final String SESSION_USERROL = "USERROL";				//用户对象
	public static final String SESSION_USERNAME = "USERNAME";			//用户名
	public static final String TRUE = "T";
	public static final String FALSE = "F";
	public static final String LOGIN = "/login_toLogin.do";				//登录地址
	public static final String SYSNAME = "admin/config/SYSNAME.txt";	//系统名称路径
	public static final String PAGE	= "admin/config/PAGE.txt";			//分页条数配置路径
	public static final String EMAIL = "admin/config/EMAIL.txt";		//邮箱服务器配置路径
	public static final String SMS1 = "admin/config/SMS1.txt";			//短信账户配置路径1
	public static final String SMS2 = "admin/config/SMS2.txt";			//短信账户配置路径2
	public static final String FWATERM = "admin/config/FWATERM.txt";	//文字水印配置路径
	public static final String IWATERM = "admin/config/IWATERM.txt";	//图片水印配置路径
	public static final String WEIXIN	= "admin/config/WEIXIN.txt";	//微信配置路径
	public static final String WEBSOCKET = "admin/config/WEBSOCKET.txt";//WEBSOCKET配置路径
	public static final String FILEPATHIMG = "uploadFiles/uploadImgs/";	//图片上传路径
	public static final String FILEPATHFILE = "uploadFiles/file/";		//文件上传路径
	public static final String FILEPATHTWODIMENSIONCODE = "uploadFiles/twoDimensionCode/"; //二维码存放路径
	public static final String NO_INTERCEPTOR_PATH = ".*/((login)|(logout)|(code)|(app)|(weixin)|(static)|(main)|(uploadFiles)|(websocket)).*";	//不对匹配该值的访问路径拦截（正则）
	
	
	public static ApplicationContext WEB_APP_CONTEXT = null; //该值会在web容器启动时由WebAppContextListener初始化
	
	/**
	 * APP Constants
	 */
	//app注册接口_请求协议参数)
	public static final String[] APP_REGISTERED_PARAM_ARRAY = new String[]{"USERNAME","PASSWORD","CODE","PHONE","CODE_ID"};
	public static final String[] APP_REGISTERED_VALUE_ARRAY = new String[]{"用户名","密码","验证码","手机号","验证码ID"};
	
	//app根据用户名获取会员信息接口_请求协议中的参数
	public static final String[] APP_GETAPPUSER_PARAM_ARRAY = new String[]{"USERNAME"};  
	public static final String[] APP_GETAPPUSER_VALUE_ARRAY = new String[]{"用户名"};
	
	//app登陆参数
	public static final String[] APP_LOGIN_PARAM_ARRAY = new String[]{""};//登录接口参数
	public static final String[] APP_LOGIN_VALUE_ARRAY = null;//登录接口参数值
	
	//app根据用户ID 获取用户拥有的好友  及其组别
	public static final String[] APP_GETGROUP_PARAM_ARRAY = new String[]{"U_ID"};//参数
	public static final String[] APP_GETGROUP_VALUE_ARRAY = new String[]{"用户ID"};//参数值
	
	//获取部门
	public static final String[] APP_GETDEPARMENT_PARAM_ARRAY = new String[]{"C_ID"};
	public static final String[] APP_GETDEPARMENT_VALUE_ARRAY = new String[]{"公司ID"};
	
	//获取工作提议
	public static final String[] APP_GETWORKADVICE_PARAM_ARRAY = new String[]{"D_ID"};
	public static final String[] APP_GETWORKADVICE_VALUE_ARRAY = new String[]{"部门ID"};
	
	//获取同事录
	public static final String[] APP_GETNOTE_PARAM_ARRAY =  new String[]{"U_ID","C_ID"};
	public static final String[] APP_GETNOTE_VALUE_ARRAY = new String[]{"用户ID","公司ID"};
	
	//获取工作提议详情
	public static final String[] APP_WORKADVICE_PARAM_ARRAY = new String[]{"P_ID"};
	public static final String[] APP_WORKADVICE_VALUE_ARRAY = new String[]{"工作提议ID"};
	
	//获取评论
	public static final String[] APP_COMMENT_PARAM_ARRAY = new String[]{"DT_ID","DT_TYPE"};
	public static final String[] APP_COMMENT_VALUE_ARRAY = new String[]{"动态ID","动态类型"};
	
	//获取回复
	public static final String[] APP_REPLY_PARAM_ARRAY = new String[]{"COMMENT_ID"};
	public static final String[] APP_REPLY_VALUE_ARRAY = new String[]{"COMMENT_ID"};
	
	//工作痕迹评论
	public static final String[] APP_PLANCOMMENT_PARAM_ARRAY = new String[]{"TYPE_ID","P_ID"};
	public static final String[] APP_PLANCOMMENT_VALUE_ARRAY = new String[]{"类型ID","工作分工ID"};
	
	//发布工作提议
	public static final String[] APP_SAVEWORKADVICE_PARAM_ARRAY = new String[]{"C_ID","D_ID","U_ID","CONTENT","CREATE_TIME","END_TIME","MONEY","STAND"};
	public static final String[] APP_SAVEWORKADVICE_VALUE_ARRAY = new String[]{"公司ID","部门ID","用户ID","内容","创建时间","截止日期","钱","标准"};
	
	//根据公司名字获取公司ID
	public static final String[] APP_GETCOMPANY_PARAM_ARRAY = new String[]{"NAME","U_ID","DESCRIPTION"};
	public static final String[] APP_GETCOMPANY_VALUE_ARRAY = new String[]{"公司NAME","用户ID","公司描述"};
	
	//根据公司名字更新公司Logo
	public static final String[] APP_GETUPDATECOMPANY_PARAM_ARRAY = new String[]{"LOGO"};
	public static final String[] APP_GETUPDATECOMPANY_VALUE_ARRAY = new String[]{"公司LOGO"};
	
	//备忘录标签
	public static final String[] APP_MEMORYTAG_PARAM_ARRAY = new String[]{"U_ID","NAME"};
	public static final String[] APP_MEMORYTAG__VALUE_ARRAY = new String[]{"用户ID","名字"};
	
	//备忘录
	public static final String[] APP_MEMORY_PARAM_ARRAY = new String[]{"CREATE_TIME","CONTENT","U_ID","TYPE_ID"};
	public static final String[] APP_MEMORY__VALUE_ARRAY = new String[]{"创建时间","内容","用户ID","标签ID"};

	//新增工作自荐
	public static final String[] APP_WORKRECOMMEND_PARAM_ARRAY = new String[]{"CONTENT","CREATE_TIME","U_ID","P_ID"};
	public static final String[] APP_WORKRECOMMEND_VALUE_ARRAY = new String[]{"内容","创建时间","用户ID","工作提议ID"};
	
	//新增主管通知
	public static final String[] APP_RECOMMEND_PARAM_ARRAY = new String[]{"CONTENT","CREATE_TIME","U_ID","P_ID"};
	public static final String[] APP_RECOMMEND_VALUE_ARRAY = new String[]{"内容","创建时间","用户ID","工作提议id"};
	//获取工作分工
	public static final String[] APP_WORKPLAN_PARAM_ARRAY = new String[]{"U_ID","TIME"};
	public static final String[] APP_WORKPLAN_VALUE_ARRAY = new String[]{"用户ID","时间"};
	//获取工作分工
	public static final String[] APP_WORKPLANT_PARAM_ARRAY = new String[]{"D_ID","TIME"};
	public static final String[] APP_WORKPLANT_VALUE_ARRAY = new String[]{"D_ID","TIME"};
	
	//获取备忘录
	public static final String[] APP_GETMEMORY_PARAM_ARRAY = new String[]{"U_ID","TIME","T_ID"};
	public static final String[] APP_GETMEMORY_VALUE_ARRAY = new String[]{"用户ID","时间","标签ID"};
	
	//保存用户评论信息
	public static final String[] APP_SAVECOMMENT_PARAM_ARRAY = new String[]{"USER_ID","CONTENT","TIME","DT_TYPE","DT_ID"};
	public static final String[] APP_SAVECOMMENT_VALUE_ARRAY = new String[]{"用户ID","评论内容","创建时间","动态类型","动态ID"};
		
	//保存用户评论回复信息
	public static final String[] APP_SAVEREPLY_PARAM_ARRAY = new String[]{"COMMENT_ID","CONTENT","TIME","U_ID"};
	public static final String[] APP_SAVEREPLY_VALUE_ARRAY = new String[]{"评论ID","回复内容","创建时间","回复用户ID"};
	
	//更新公司名字
	public static final String[] APP_GETCName_PARAM_ARRAY = new String[]{"NAME","ID","DESCRIPTION"};
	public static final String[] APP_GETCName_VALUE_ARRAY = new String[]{"公司NAME","公司ID","公司描述"};
	
	//添加功能
	public static final String[] APP_SAVEAPPMENU_PARAM_ARRAY = new String[]{"C_ID","MENU_ID"};
	public static final String[] APP_SAVEAPPMENU_VALUE_ARRAY = new String[]{"公司ID","菜单ID"};
	
	//发布工作分工
	public static final String[] APP_SAVEWORKPLAN_PARAM_ARRAY = new String[]{"C_ID","D_ID","U_ID","CONTENT","CREATE_TIME","END_TIME","MONEY","STAND","UIDS","TIDS"};
	public static final String[] APP_SAVEWORKPLAN_VALUE_ARRAY = new String[]{"公司ID","部门ID","用户ID","内容","创建时间","截止日期","钱","标准","用户ID集合","用户身份集合"};
	
	//新增用户点赞
	public static final String[] APP_SAVESUPPORT_PARAM_ARRAY = new String[]{"USER_ID","SUPPORT","DT_ID","DT_TYPE","SUPPORT_NUM"};
	public static final String[] APP_SAVESUPPORT_VALUE_ARRAY = new String[]{"用户ID","点赞","动态ID","动态类型","赞总数"};
	
	//更新用户踩
	public static final String[] APP_SAVETRAMPLE_PARAM_ARRAY = new String[]{"USER_ID","TRAMPLE","DT_ID","DT_TYPE","TRAMPLE_NUM"};
	public static final String[] APP_SAVETRAMPLE_VALUE_ARRAY = new String[]{"用户ID","点踩","动态ID","动态类型","踩总数"};
	
	//我的里面更多功能里面去新增功能
	public static final String[] APP_SAVEUSERMENU_PARAM_ARRAY = new String[]{"U_ID","MENU_ID","STATUS"};
	public static final String[] APP_SAVEUSERMENU_VALUE_ARRAY = new String[]{"用户ID","菜单ID","状态"};
	
	//公司里面的功能里面去新增功能
	public static final String[] APP_SAVECOMPANYMENU_PARAM_ARRAY = new String[]{"C_ID","MENU_ID","STATUS"};
	public static final String[] APP_SAVECOMPANYMENU_VALUE_ARRAY = new String[]{"公司ID","菜单ID","状态"};
	
	//查找公司
	public static final String[] APP_SEARCHCOMPANYMENU_PARAM_ARRAY = new String[]{"NAME"};
	public static final String[] APP_SEARCHCOMPANYMENU_VALUE_ARRAY = new String[]{"公司名字"};
	
	//会员加入公司
	public static final String[] APP_JOINCOMPANYMENU_PARAM_ARRAY = new String[]{"U_ID","C_ID"};
	public static final String[] APP_JOINCHCOMPANYMENU_VALUE_ARRAY = new String[]{"用户ID	","公司ID"};
	
	//创建团组
	public static final String[] APP_SAVEDEPARTMENTMENU_PARAM_ARRAY = new String[]{"C_ID","NAME"};
	public static final String[] APP_SAVEDEPARTMENTMENU_VALUE_ARRAY = new String[]{"公司ID","部门名字"};
	
	//创建子类部门
	public static final String[] APP_SAVESONDEPARTMENTMENU_PARAM_ARRAY = new String[]{"C_ID","NAME","PARENT_ID"};
	public static final String[] APP_SAVESONDEPARTMENTMENU_VALUE_ARRAY = new String[]{"公司ID","部门名字","父类部门的ID"};

	//公司将员工加入部门
	public static final String[] APP_JOINDEPARTMENTMENU_PARAM_ARRAY = new String[]{"C_ID","UIDS","D_ID"};;
	public static final String[] APP_JOINDEPARTMENTMENU_VALUE_ARRAY = new String[]{"公司ID","用户ID","部门ID"};
	
	//新增收藏动态
	public static final String[] APP_SAVECOMPANYCOLLECTION_PARAM_ARRAY = new String[]{"U_ID","D_ID"};
	public static final String[] APP_SAVECOMPANYCOLLECTION_VALUE_ARRAY = new String[]{"用户ID","动态ID"};
	
	//根据类别获取公司
	public static final String[] APP_GETCOMPANYTYPE_PARAM_ARRAY = new String[]{"T_ID"};
	public static final String[] APP_GETCOMPANYTYPE_VALUE_ARRAY = new String[]{"父类别ID"};
	
	//获取我的定制
	public static final String[] APP_GETCOMPANYCUSTOM_PARAM_ARRAY = new String[]{"T_ID","U_ID"};
	public static final String[] APP_GETCOMPANYCUSTOM_VALUE_ARRAY = new String[]{"类别ID","用户ID"};
	
	//获取附近公司
	public static final String[] APP_SELECTATTACHMENT_PARAM_ARRAY = new String[]{"LONGITUDE","LATITUDE","RAD"};
	public static final String[] APP_SELECTATTACHMENT_VALUE_ARRAY = new String[]{"纬度","经度","半径"};
		

}
